/*
 * @Description: 路由模板
 * @Author: 小雨
 * @Date: 2024-06-27 14:59:58
 * @LastEditTime: 2024-06-27 16:09:14
 * @LastEditors: 小雨
 */
const express = require('express');
//导入路由模块
const router = require('./router');

const app = express();
//使用路由模块
//app.use就是用来注册全局中间件
// app.use(router);
app.use('/api', router); //增加前缀

app.listen(80, () => {
    console.log('服务器启动');
});
